<!--
  @author tanghongjun
  @since 2018/10/19 08:59
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>产品管理</title>
</head>
<body>
<script type="text/javascript" th:inline="javascript">

    var json = {
        faultGroupVOList: [[${faultGroupVOList}]]
    };

    layui.config({
        version: 2019071823091,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        serv_service_group_list: "service/group/zmn.service.group.list",
    }).use(['index', 'serv_service_group_list']);

</script>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        <a lay-href="/service/tariff/list.action">价格表管理&nbsp;&nbsp;</a>/&nbsp;
        <span th:text="${faultTariff.tariffName}"></span>&nbsp;&nbsp;/&nbsp;
        <span th:text="${servCategory.name}"></span>&nbsp;&nbsp;/&nbsp;
        <span th:text="${baseCategory.name}"></span>&nbsp;&nbsp;/&nbsp;
        <span>项目管理</span>
    </blockquote>
    <div class="layui-card">
        <!--<div th:replace="fault/group/_tab::tab"></div>-->
        <div th:replace="service/group/_table::table"></div>
    </div>

</div>

<div id="operatorDiv" style="display: none">
    <div class="layui-btn-container" style="width: 300px;">
        <button onclick="javascript:void(0);" class="layui-btn layui-btn-sm layui-btn-primary" th:if="${#authPermit.checkPermit('/service/item/detail.action')}">
            <a th:lay-href="|/service/item/detail.action?itemId=_itemId|" lay-text="修改" style="text-align: center">修改</a>
        </button>
        <button onclick="javascript:void(0);" class="layui-btn layui-btn-sm layui-btn-primary" th:if="${#authPermit.checkPermit('/service/item/warrantyInfoList.action')}">
                <a th:lay-href="|/service/item/warrantyInfoList.action?servCategId=${servCategId}&categOneId=${categOneId}&groupId=_groupId&itemId=_itemId|" lay-text="保修信息" style="text-align: center">保修信息</a>
        </button>
        <button id="deleteBtn" onclick="deleteItem(_itemId,'_itemName','_status');" class="layui-btn layui-btn-sm layui-btn-primary layui-bg-gray" th:if="${#authPermit.checkPermit('/service/item/deleteItem.action')}">
            删除
        </button>
        <button id="feeDetailBtn" onclick="viewFeeDetail(_itemId,_groupId,_priceSplit);" class="layui-btn layui-btn-sm layui-btn-primary layui-bg-gray" th:if="${#authPermit.checkPermit('/service/item/detail.action')}">
            费用明细
        </button>
        <button onclick="javascript:void(0);" class="layui-btn layui-btn-sm layui-btn-primary" th:if="${#authPermit.checkPermit('/service/item/timeConfig/detail.action')}">
            <a th:lay-href="|/service/item/timeConfig/detail.action?itemId=_itemId|" lay-text="时间设置" style="text-align: center">时间设置</a>
        </button>
        <button onclick="javascript:void(0);" class="layui-btn layui-btn-sm layui-btn-primary" th:if="${#authPermit.checkPermit('/service/item/partList.action')&&faultTariff.tariffType==4}">
            <a th:lay-href="|/service/item/partList.action?itemId=_itemId|" lay-text="关联配件" style="text-align: center">关联配件</a>
        </button>
    </div>
</div>

<!---展示的费用明细div--->
<div id="showTipsDiv" style="display: none">
    <form method="post" action="" class="layui-form" lay-filter="">
        <div class="layui-card">
            <div class="zmn-form-item">
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">明细类型：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_priceSplitType</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="zmn-form-item type1">
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">交通费：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_trafficFeeYuan</span>
                        </div>
                    </div>
                </div>
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">工时费：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_hourFeeYuan</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="zmn-form-item type1">
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">技术服务费：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_serviceRatio</span>
                        </div>
                    </div>
                </div>
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">配件包干费：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_partRatio</span>
                        </div>
                    </div>
                </div>
            </div>


            <div class="zmn-form-item type2">
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">材料费：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_materialFee</span>
                        </div>
                    </div>
                </div>
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">工艺费：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_factoryFee</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="zmn-form-item type2">
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">阶梯值：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_numberStep</span>
                        </div>
                    </div>
                </div>
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">阶梯降幅：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_numberStepDown</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="zmn-form-item type2">
                <div class="item-inline" style="width: 50%">
                    <label class="inline-label">底折：</label>
                    <div class="inline-box">
                        <div class="inline-box-cc">
                                <span class="layui-form-mid" style="width: 120px;line-height: 15px;">_baseDiscount</span>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>

</div>


</body>
</html>
